package com.app.service;

import com.app.model.JiuquanUserModel;
import com.app.model.UserModel;
import com.app.vo.JiuquanUserVo;
import com.baomidou.mybatisplus.extension.service.IService;

import javax.security.auth.login.LoginException;
import javax.servlet.http.HttpServletRequest;

public interface UserService extends IService<JiuquanUserModel> {
    void update(JiuquanUserModel model);

    void insert(JiuquanUserModel model);

    JiuquanUserModel selectById(Integer id);

    JiuquanUserVo getList(Integer page, Integer limit, String keyword);

    void updateStatus(Integer id, Integer status);

    void deleteById(Integer id);

    JiuquanUserModel getOpenid(String code, HttpServletRequest request) throws LoginException;

    String getPhone(String code, HttpServletRequest request);

    JiuquanUserModel getUserByOpenid(String openId);

    JiuquanUserModel selectUserById(Integer id);
}
